#include <iostream>
#include <vector>
using namespace std;

class Solution
{
public:
    bool isArraySpecial(vector<int> &nums)
    {
        if (nums.size() == 1)
            return true;
        for (int i = 0; i < nums.size() - 1; i++)
        {
            if (nums[i] % 2 == nums[i + 1] % 2)
            {
                return false;
            }
        }
        return true;
    }
};
int main()
{
    cout << "Code3151" << endl;
    Solution s;
    vector<int> nums = {4, 3, 1, 6};
    cout << s.isArraySpecial(nums);
    return 0;
}